package com.j.lemon.learn.jvm;

/**
 * @Author lijunjun
 * @Date 2020-02-12 17:16
 * @Description
 */
public class FatherSonDemo {
    static class Father{
        int money = 1;
        public Father(){
            money = 2;
            showMeTheMoney();
        }

        public void showMeTheMoney() {
        }
    }

    static class Son extends Father{
        int money = 4;
        public Son(){
            money = 5;
            showMeTheMoney();
        }

        public void showMeTheMoney() {
        }
    }

    public static void main(String[] args) {
        Father f = new Son();

    }
}
